<?php

class FacturasProductosController extends AppController {
    public $helpers = array('Html', 'Form');
    public $name = 'FacturasProductos';
    
    public function index($id) {        
        $this->set('detalle', $this->FacturasProducto->find('all', array('conditions' => array('factura_id' => $id))));
    }
    
    public function add($data = null) {
        if($this->FacturasProducto->save($data)) {
            return true;
        } else {
            return false;
        }
    }
}

?>